/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.cqcis.uip.base.logadaptor;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 属性
 * 
 * @author huangmy
 * @date   2008-4-11
 */
public class Attributes<T> implements Serializable {
	private static final long serialVersionUID = 1L;
	private Map<String, T> attributes = new HashMap<String, T>();

	public Map<String, T> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, T> attributes) {
		this.attributes = attributes;
	}

	public T setAttribute(String name, T value) {
		return this.attributes.put(name, value);
	}

	public T getAttribute(String name) {
		return this.attributes.get(name);
	}

	public T removeAttribute(String name) {
		return this.attributes.remove(name);
	}
}
